<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon_callbacks.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">drogon_callbacks.h</div></div>
</div><!--header-->
<div class="contents">
<a href="drogon__callbacks_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;<a class="code" href="HttpTypes_8h.html">drogon/HttpTypes.h</a>&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>{</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">class </span>HttpResponse;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">   24</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> = std::shared_ptr&lt;HttpResponse&gt;;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keyword">class </span><a class="code hl_class" href="classdrogon_1_1HttpRequest.html">HttpRequest</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">   26</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> = std::shared_ptr&lt;HttpRequest&gt;;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a537d4ab1b522ccee2c3377c4d8ea4a2e">   27</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a537d4ab1b522ccee2c3377c4d8ea4a2e">AdviceCallback</a> = std::function&lt;void(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> &amp;)&gt;;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a32156d4371a4c378893f8c3a7f2b54c3">   28</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a32156d4371a4c378893f8c3a7f2b54c3">AdviceChainCallback</a> = std::function&lt;void()&gt;;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a7d7b482287e81a3b7d94a203b5d54b43">   29</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a7d7b482287e81a3b7d94a203b5d54b43">AdviceStartSessionCallback</a> = std::function&lt;void(<span class="keyword">const</span> std::string &amp;)&gt;;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a4a6e4ad19b218191e589e6e665442c82">   30</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a4a6e4ad19b218191e589e6e665442c82">AdviceDestroySessionCallback</a> = std::function&lt;void(<span class="keyword">const</span> std::string &amp;)&gt;;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a7afe27d30aeb06ed6316285d88c74ece">   31</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a7afe27d30aeb06ed6316285d88c74ece">FilterCallback</a> = std::function&lt;void(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> &amp;)&gt;;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a10f3a62986d997964a86c6516985818e">   32</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a10f3a62986d997964a86c6516985818e">FilterChainCallback</a> = std::function&lt;void()&gt;;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a42bee205ed433dfbe0cc131684ae3562">   33</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a42bee205ed433dfbe0cc131684ae3562">HttpReqCallback</a> = std::function&lt;void(<a class="code hl_enumeration" href="namespacedrogon.html#ad4f1bd941b74c9e31506ec1ec5f5cd91">ReqResult</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> &amp;)&gt;;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a6a361b482e0084d11cbebeed1677d577">   35</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a6a361b482e0084d11cbebeed1677d577">MiddlewareCallback</a> = std::function&lt;void(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> &amp;)&gt;;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespacedrogon.html#aac356e8eb8bbc103efe2910214850e98">   36</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#aac356e8eb8bbc103efe2910214850e98">MiddlewareNextCallback</a> =</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    std::function&lt;void(std::function&lt;<span class="keywordtype">void</span>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> &amp;)&gt; &amp;&amp;)&gt;;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aHttpTypes_8h_html"><div class="ttname"><a href="HttpTypes_8h.html">HttpTypes.h</a></div></div>
<div class="ttc" id="aclassdrogon_1_1HttpRequest_html"><div class="ttname"><a href="classdrogon_1_1HttpRequest.html">drogon::HttpRequest</a></div><div class="ttdoc">Abstract class for webapp developer to get or set the Http request;</div><div class="ttdef"><b>Definition</b> HttpRequest.h:81</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
<div class="ttc" id="anamespacedrogon_html_a10f3a62986d997964a86c6516985818e"><div class="ttname"><a href="namespacedrogon.html#a10f3a62986d997964a86c6516985818e">drogon::FilterChainCallback</a></div><div class="ttdeci">std::function&lt; void()&gt; FilterChainCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:32</div></div>
<div class="ttc" id="anamespacedrogon_html_a32156d4371a4c378893f8c3a7f2b54c3"><div class="ttname"><a href="namespacedrogon.html#a32156d4371a4c378893f8c3a7f2b54c3">drogon::AdviceChainCallback</a></div><div class="ttdeci">std::function&lt; void()&gt; AdviceChainCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:28</div></div>
<div class="ttc" id="anamespacedrogon_html_a42bee205ed433dfbe0cc131684ae3562"><div class="ttname"><a href="namespacedrogon.html#a42bee205ed433dfbe0cc131684ae3562">drogon::HttpReqCallback</a></div><div class="ttdeci">std::function&lt; void(ReqResult, const HttpResponsePtr &amp;)&gt; HttpReqCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:33</div></div>
<div class="ttc" id="anamespacedrogon_html_a4a6e4ad19b218191e589e6e665442c82"><div class="ttname"><a href="namespacedrogon.html#a4a6e4ad19b218191e589e6e665442c82">drogon::AdviceDestroySessionCallback</a></div><div class="ttdeci">std::function&lt; void(const std::string &amp;)&gt; AdviceDestroySessionCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:30</div></div>
<div class="ttc" id="anamespacedrogon_html_a5200699555f98a809538342baa167aad"><div class="ttname"><a href="namespacedrogon.html#a5200699555f98a809538342baa167aad">drogon::HttpRequestPtr</a></div><div class="ttdeci">std::shared_ptr&lt; HttpRequest &gt; HttpRequestPtr</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:26</div></div>
<div class="ttc" id="anamespacedrogon_html_a537d4ab1b522ccee2c3377c4d8ea4a2e"><div class="ttname"><a href="namespacedrogon.html#a537d4ab1b522ccee2c3377c4d8ea4a2e">drogon::AdviceCallback</a></div><div class="ttdeci">std::function&lt; void(const HttpResponsePtr &amp;)&gt; AdviceCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:27</div></div>
<div class="ttc" id="anamespacedrogon_html_a6a361b482e0084d11cbebeed1677d577"><div class="ttname"><a href="namespacedrogon.html#a6a361b482e0084d11cbebeed1677d577">drogon::MiddlewareCallback</a></div><div class="ttdeci">std::function&lt; void(const HttpResponsePtr &amp;)&gt; MiddlewareCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:35</div></div>
<div class="ttc" id="anamespacedrogon_html_a7afe27d30aeb06ed6316285d88c74ece"><div class="ttname"><a href="namespacedrogon.html#a7afe27d30aeb06ed6316285d88c74ece">drogon::FilterCallback</a></div><div class="ttdeci">std::function&lt; void(const HttpResponsePtr &amp;)&gt; FilterCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:31</div></div>
<div class="ttc" id="anamespacedrogon_html_a7d7b482287e81a3b7d94a203b5d54b43"><div class="ttname"><a href="namespacedrogon.html#a7d7b482287e81a3b7d94a203b5d54b43">drogon::AdviceStartSessionCallback</a></div><div class="ttdeci">std::function&lt; void(const std::string &amp;)&gt; AdviceStartSessionCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:29</div></div>
<div class="ttc" id="anamespacedrogon_html_aac356e8eb8bbc103efe2910214850e98"><div class="ttname"><a href="namespacedrogon.html#aac356e8eb8bbc103efe2910214850e98">drogon::MiddlewareNextCallback</a></div><div class="ttdeci">std::function&lt; void(std::function&lt; void(const HttpResponsePtr &amp;)&gt; &amp;&amp;)&gt; MiddlewareNextCallback</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:37</div></div>
<div class="ttc" id="anamespacedrogon_html_ab2a2d829bb017f43c2c9de72f4042baa"><div class="ttname"><a href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">drogon::HttpResponsePtr</a></div><div class="ttdeci">std::shared_ptr&lt; HttpResponse &gt; HttpResponsePtr</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:24</div></div>
<div class="ttc" id="anamespacedrogon_html_ad4f1bd941b74c9e31506ec1ec5f5cd91"><div class="ttname"><a href="namespacedrogon.html#ad4f1bd941b74c9e31506ec1ec5f5cd91">drogon::ReqResult</a></div><div class="ttdeci">ReqResult</div><div class="ttdef"><b>Definition</b> HttpTypes.h:202</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
